package com.ssg.poultry.protocol;

public class CommandHex {
	
	//连接
	public static final String CONN = "AB 04 01 80 01 00";
	public static final String CONN_SUCC_PREFIX = "AB 0A 01 00 01";
	public static final int CONN_SUCC_LEN = 12;

	//寻卡
	public static final String FIND_CARD = "AB 04 01 80 03 00";
	public static final String FIND_CARD_FAIL = "AB 04 01 00 03 80";
	public static final String FIND_CARD_SUCC = "AB 05 01 00 03 04 00";
	
	//防冲突
	public static final String KILL_CONFLICT = "AB 04 01 80 04 00";
	public static final String KILL_CONFLICT_SUCC_PREFIX = "AB 07 01 00 04";
	public static final String KILL_CONFLICT_SUCC = "AB 07 01 00 04 80 BB 71 A9";
	
	//选择卡
	//CHOSE_CARD_PREFIX + CARD_ID + 00
	public static final String CHOSE_CARD_PREFIX = "AB 09 01 80 05 00";
	//succ = CHOSE_CARD_SUCC_PREFIX + CARD_ID(4 BYTE)
	public static final String CHOSE_CARD_SUCC_PREFIX = "AB 08 01 00 05 00";
	
	//下载密码 连续执行 DOWNLOAD_PW_PREFIX + index +DOWNLOAD_PW_SUFFIX,index 为00—20(32个)
	public static final String DOWNLOAD_PW_PREFIX = "AB 0B 01 80 05";
	public static final String DOWNLOAD_PW_SUFFIX = "FF FF FF FF FF FF 00";
	public static final String DOWNLAOD_PW_SUCC_PREFIX = "AB 05 01 00 05";
	public static final String DOWNLAOD_PW_SUCC_SUFFIX = "01";
	
	//读取扇区 READ_SECTOR_PREFIX + BYTE +READ_SECTOR_SUFFIX,BYTE=C0-CF
	public static final String READ_SECTOR_PREFIX = "AB 05 01 80 07";
	public static final String READ_SECTOR_SUFFIX = "00";
	
}
